<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <style>
         form {
            text-align: center;
        }
        h1 {
            text-align: center;
        }
    </style>
    <script> 
        function submitForm() {
            alert("登录成功");
            return false; 
        }
    </script>
</head>
<body>
    <h1>账号登录</h1>
    <hr>
    <form onsubmit="return submitForm()">
        用户名：<input type="text" name="account" maxlength="10" autofocus placeholder="请输入账号" required><br>
          密码：<input type="password" name="code" maxlength="8" placeholder="请输入密码" required><br>
          <button>登录</button>
    </form>
</body>
</html>